<?php

namespace app\admin\validate;

use think\Validate;

class AdValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'url' => 'require',
        'device' => 'require',
        'cover' => 'require',
        'sort' => 'require',
        'time_range' => 'require',
    ];
    protected $message = [
        'name.require' => '请输入广告标题',
        'url.require' => '请输入链接地址',
        'device.require' => '请选择投放设备',
        'cover.require' => '请上传广告图片',
        'sort.require' => '请输入排序',
        'time_range.require' => '请选择展示时间',
    ];
}